package com.xbongbong.pro.statistic.pojo.dto;

import com.xbongbong.paas.toolbox.wrap.BaseDTO;
import lombok.Getter;
import lombok.Setter;
import lombok.ToString;

import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;

/**
 * 设置BI相关数量限制dto
 * @author zcp
 * @since v1.0
 * @version v1.0
 */
@Getter
@Setter
@ToString
public class BiLimitDTO extends BaseDTO {
    private static final long serialVersionUID = 4331146325263897022L;
    /**
     * 验证码
     */
    @NotEmpty(message = "{dto.msg.reInitData.xbbCode.NotEmpty}")
    private String xbbCode;
    /**
     * 图表限制类型
     * @see com.xbongbong.pro.statistic.enums.ChartLimitTypeEnum
     */
    @NotNull(message = "请输入图表限制类型")
    private Integer code;
    /**
     * 数量限制
     */
    @NotNull(message = "请输入限制数量")
    private Integer size;
}
